<?php
/**
 * appRain v 0.1.x
 *
 * LICENSE
 *
 * This source file is subject to the MIT license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.opensource.org/licenses/mit-license.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@apprain.com so we can send you a copy immediately.
 *
 * @copyright  Copyright (c) 2010 appRain, Team. (http://www.apprain.com)
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 *
 * HELP
 *
 * Official Website
 * http://www.apprain.com/
 *
 * Download Link
 * http://www.apprain.com/download
 *
 * Documents Link
 * http ://www.apprain.com/docs
 */

    echo $this->get_tag('form',array('class'=>'app_form'));
        App::Helper('Toolbar')->setTitle("Theme")->setBtnBack()->Render(array('code'=>'theme_top'));
        echo $this->get_tag("div",array("class"=>"theme_pan"));
               echo $this->get_tag("div",array("class"=>"theme_default"));
                        echo $this->get_tag("h2","Current Theme");
                        echo $this->get_tag("div",App::load("Helper/Html")->imgDTag("{$themes_default['basepath']}/definition/{$themes_default['image']}","/200/fix"));
                        echo $this->get_tag("div");
                             echo "<br /><strong class=\"theme_created_by\">{$themes_default['title']}</strong> created by " . App::load("Helper/Html")->linkTag($themes_default['author_uri'],$themes_default['author']);
                             echo "<br />";
                            echo $themes_default['description'];
                        echo $this->get_tag("/div");
                        echo "<br class='clearboth' />";
               echo $this->get_tag("/div");
            echo $this->get_tag("table",array("border"=>"0","class"=>"theme_listing","align"=>"center","width"=>"90%"));
                echo $this->get_tag("tr");
                foreach( $themes as $key => $val )
                {
                    if( $key != 0 && $key %2 == 0 ) echo "</tr><tr>";
                    echo $this->get_tag("td",array("width"=>"33%"));
                    echo $this->get_tag("ul",array("class"=>"theme-inner-list"));
                        echo $this->get_tag("li",App::load("Helper/Html")->imgDTag("{$val['basepath']}/definition/{$val['image']}","/300/fix"));
                        echo $this->get_tag("li","<strong>{$val['title']}</strong> created by " . App::load("Helper/Html")->linkTag($val['author_uri'],$val['author']));
                        echo $this->get_tag("li", App::load("Helper/Html")->linkTag($this->baseurl("/developer/theme/" . base64_encode($val['name'])),"Install"));
                        echo $this->get_tag("li",$val['description']);
                    echo $this->get_tag("/ul");
                    echo $this->get_tag("/td");
                }
                echo $this->get_tag("/tr");
            echo $this->get_tag("/table");
        echo $this->get_tag("/div");
        App::Helper('Toolbar')->setBtnBack()->Render(array('code'=>'theme_bottom'));
    echo $this->get_tag('/form');